
<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>
<?php get_header(); ?>


<div class="main">

			 <?php while (have_posts()) : the_post(); 

			 $string = get_post_meta($post->ID, 'yt', true);?>

	<div class="main_left_single">
	
		
	
		<div class="mediasingle_item">
		
		 <?php if ( $string = get_post_meta($post->ID, 'yt', true)) { ?>
		
			<object width="630" height="370">
			<param name="movie" value="http://www.youtube.com/v/<?php $url = parse_url($string);parse_str($url['query']); echo $v;?>"></param>
			<param name="allowFullScreen" value="true"></param>
			<param name="allowscriptaccess" value="always">
			<param name="wmode" value="transparent">
			</param>
			<embed src="http://www.youtube.com/v/<?php $url = parse_url($string);parse_str($url['query']); echo $v;?>" width="630" height="370" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" movie="http://www.youtube.com/v/<?php $url = parse_url($string);parse_str($url['query']); echo $v;?>" wmode="transparent"></embed>
			</object>		
			<?php } ?>
			
			 <?php if ( $vimeoidexe = get_post_meta($post->ID, 'vim', true)) { ?>
			  <object width="630" height="370">
			  <param name="allowfullscreen" value="true" />
			  <param name="allowscriptaccess" value="always" />
			  <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7484260&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1" />
			  <embed src="http://vimeo.com/moogaloop.swf?clip_id=<?php echo $vimeoidexe; ?>&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="630" height="370">
			  </embed>
			  </object>
				<?php } ?>
		</div>
		
		<div class="main_left_top"><?php the_title(); ?>
		</div>
		
		<div class="mediasingle_text">
		
		
		
		
		
		<div><?php the_content(); ?>
		</div>
		
	    <div class="post_single_footer"><span class="post_time"><?php the_time('M j, Y') ?></span><span class="post_cat"><?php the_category(', ') ?></span><span class="post_single_tags"><?php echo get_the_tag_list( '',' - '); ?></span>
		</div>	
		
		<div class="mediasingle_comments">
		<?php comments_template(); ?>
		</div>
		</div>
		
		<div class="main_left_bottom">
		</div>
		
	</div>


<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dbx_init_2.js"></script>

	<div class="main_right">
	<?php include (TEMPLATEPATH . '/single_top.php'); ?>
	<?php get_sidebar(); ?>
	</div>
	
	<div class="clear">
	</div>
		<?php endwhile; ?>
</div>

<?php get_footer(); ?>
